package workspace.teaweb.Logistics.mappers;

import org.apache.ibatis.annotations.Param;
import workspace.teaweb.Logistics.pojo.dto.LogisticsGetDto;
import workspace.teaweb.Logistics.pojo.dto.LogisticsPostDto;
import workspace.teaweb.Logistics.pojo.entity.Logistics;
import workspace.teaweb.Logistics.pojo.entity.Order;

import java.util.List;

public interface LogisticsMapper {
    //物流单创建
    void insertlogistics(Logistics logistics);
    //物流单更新（抵达）
    void updateGetlogistics(LogisticsGetDto logistics);
    //物流单更新（发出）
    void updatePostlogistics(LogisticsPostDto logistics);
    //物流单查询
    Logistics selectlogisticsById(Long id);
    //物流单查询（根据CRMid）
    List<Logistics> selectlogisticsByCRMid(Logistics logistics); //物流单查询（根据CRMid）

    //物流单查询（根据PostWarehouseid、status）
    Logistics selectlogisticsByPostWarehouseidAndStatus(@Param("PostWarehouseid") Long PostWarehouseid,@Param("status") String status);
    //物流单查询（根据GetWarehouseid、status）
    Logistics selectlogisticsByGetWarehouseidAndStatus(@Param("GetWarehouseid") Long GetWarehouseid,@Param("status") String status);

}
